import 'package:flutter/material.dart';

import 'refresh_page_controller.dart';

typedef ItemWidgetBuilder<T> = Widget Function(T item, int index);
typedef ItemActionBuilder<T> = void Function(T item, int index);
typedef LoadingBuilder = Widget Function(
    BuildContext context, RefreshPageController controller);
typedef EmptyBuilder = Widget Function(
    BuildContext context, RefreshPageController controller);
typedef ErrorBuilder = Widget Function(BuildContext context,
    RefreshPageController controller, VoidCallback reload);
